
package cn.edu.sjtu.se.dslab.dao;

import java.util.List;

import cn.edu.sjtu.se.dslab.action.bean.PageBean;
import cn.edu.sjtu.se.dslab.component.design.DesignPattern;
import cn.edu.sjtu.se.dslab.exception.DBException;

public interface IDesignPatternDao {

	public void save(DesignPattern designPattern);

	public DesignPattern update(DesignPattern designPattern);

	public DesignPattern queryById(long id);

	public DesignPattern queryByName(String name);

	public PageBean queryByPageNum(int pageNum) throws DBException;
	
	public List<DesignPattern> queryByList();

	public DesignPattern queryByUri(String uri);
	
	public DesignPattern queryByType(String type);

	boolean checkUri(String uri);
	
}
